﻿using YNTK.Common.Const;
using SqlSugar;
using YNTK.Common.Entity;

namespace YNTK.System.Entitys.Role
{
    /// <summary>
    /// 角色菜单关联信息
    /// </summary>
    [SugarTable("base_tkrolemenurelevancy")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class TkRoleMenuRelevancyEntity: EntityBase<string>
    {
        /// <summary>
        /// 角色id
        /// </summary>
        [SugarColumn(ColumnName = "F_TkRoleId", ColumnDescription = "角色id")]
        public string TkRoleId { get; set; }

        /// <summary>
        /// 菜单id
        /// </summary>
        [SugarColumn(ColumnName = "F_MenuId", ColumnDescription = "菜单id")]
        public string MenuId { get; set; }

        /// <summary>
        /// 按钮权限,多个按逗号分割
        /// </summary>
        [SugarColumn(ColumnName = "F_Authoritys", ColumnDescription = "按钮权限,多个按逗号分割")]
        public string Authoritys { get; set; }
    }
}
